#ifndef RESULTUI_H
#define RESULTUI_H

#include <QWidget>
#include <QPainter>
#include "usualbutton.h"
namespace Ui {
class ResultUI;
}

class ResultUI : public QWidget
{
    Q_OBJECT

public:
    explicit ResultUI(QWidget *parent = nullptr);
    void paintEvent(QPaintEvent *event);//重写绘图事件
    void setPp(int w, int s, QString rw[]);//设置要呈现的结果
    ~ResultUI();

private:
    Ui::ResultUI *ui;
    int wrongCount=0;//错误的单词数
    QString * wrongWords;//记录错误的单词
    int score=0;//记录分数
    usualButton * pushBTN;//确认按钮
};

#endif // RESULTUI_H
